#python zipformer_streaming_u2_xlgeng/jit_pretrained_streaming.py --nn-model-filename /home/work_nfs15/asr_data/ckpt/asr_online_system/jit_script_chunk_64_left_64.pt  \
#  --tokens /home/work_nfs15/asr_data/ckpt/asr_online_system/lang_char_bpe/tokens.txt \
#  /home/work_nfs15/asr_data/data/aishell_1/origin_wav/data_aishell/wav/test/S0764/BAC009S0764W0130.wav
if [ $# -eq 0 ]; then
    test_set="aishell"
else
    # 如果参数个数不为0，将第一个参数赋值给test_set
    test_set="$1"
fi
export PYTHONPATH=../../:$PYTHONPATH

# shellcheck disable=SC2034
text_path=/home/work_nfs15/asr_data/data/asr_test_sets/${test_set}/text
scp_path=/home/work_nfs15/asr_data/data/asr_test_sets/${test_set}/wav.scp
scp_path=./wav_100.scp
python zipformer_streaming_u2_xlgeng/jit_pretrained_ctc_gxl.py \
  --model-filename /home/work_nfs15/asr_data/ckpt/asr_online_system/jit_script_chunk_64_left_1024.pt \
  --tokens /home/work_nfs15/asr_data/ckpt/asr_online_system/lang_char_bpe/tokens.txt  \
  --sample-rate 16000 \
  --input_wav_scp $scp_path \
  --debug true \
  --output_text ./output_jit_use_text

# shellcheck disable=SC2154
python tools/compute-wer.py --char=1 --v=1 $text_path ./output_jit_use_text